package com.wxzz.elearing.course.service.openfeign;

import com.wxzz.elearing.course.service.openfeign.sentinel.DocentFeignImpl;
import com.wxzz.elearning.common.vo.ReturnVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "1122-wxzzlearn-user-model",fallback = DocentFeignImpl.class)
public interface IDocentFeign {

    @RequestMapping(value = "/docent-api/selectDocentById", method = RequestMethod.POST)
    ReturnVO<String> selectDocentById(@RequestParam("docentId") Long docentId);

    @RequestMapping(value = "selectCountByDocent/{enterpriseId}", method = RequestMethod.POST)
    Integer selectCountByDocent(@PathVariable Long enterpriseId);
}
